package com.dotflat.survey.po;

import com.dotflat.rest.PO.AreableObjectBasePO;
import com.dotflat.rest.domain.AreableObjectBase;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
public class SurveySheetPO extends AreableObjectBasePO {

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("有效期")
    private Date validTo ;

    @ApiModelProperty(value = "幼儿园名称", hidden = true)
    @JsonIgnore
    private String areaName;

    @ApiModelProperty(value = "老师名称", hidden = true)
    @JsonIgnore
    private String staffName;

    List<SurveySheetItemPO> items;
}
